package com.zhang.Builder.example;

/**
 * @author ElloeStudy(Sifa Zhang)
 * @create 2022-03-06 20:43
 * To: 真常应物，真常得性，常清常静，常清静矣
 */
public class Client2 {
    public static void main(String[] args) {
        Director director = new Director();

        // 1w 辆 A 类型的车
        for (int i = 0; i < 5; i++) {
            director.getABenzModel().run();
        }
        // 10w 辆 B 类型的车
        for (int i = 0; i < 10; i++) {
            director.getBBenzModel().run();
        }
        // 100w 辆 C 类型的车
        for (int i = 0; i < 12; i++) {
            director.getCBMWModel().run();
        }
    }
}
